package com.mimniot.environment.entity;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.miniot.business.base.entity.Entity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@Data
public class BaseEntity<T> extends Entity<T> {

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建用户名")
    @TableField(fill = FieldFill.INSERT)
    private String createUserName;

    @ApiModelProperty(value = "更新用户名")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateUserName;

    @ApiModelProperty(value = "组织id")
    @TableField(fill = FieldFill.INSERT)
    private String companyId;

    @ApiModelProperty(value = "组织name")
    @TableField(fill = FieldFill.INSERT)
    private String companyName;
    @ApiModelProperty(value = "删除标志")
    @TableLogic(value = "0",delval = "1")
    private Boolean delFlag;
}
